import { onMounted } from 'vue'

// let obj: any = { name: 'zs', age: 19 }

// obj = 100

// obj = 'hello  any'

// // let a: any;
// let a = 10

// function fn(num: number) {
//   console.log('fn')
// }

// function fn(num: any) {
//   console.log('fn')
// }

onMounted(() => {
  //  如何获取 断言的 类型  打印出来
  let divDom = document.getElementById('div') as HTMLElement
  console.dir(divDom)

  let aDom = document.getElementById('a') as HTMLAnchorElement

  console.dir(aDom)

  let imgsDom = document.getElementById('img') as HTMLImageElement

  console.dir(imgsDom)

  //  any  肯定不会出错
  let imgsDom2 = document.getElementById('img2') as any

  console.dir(imgsDom2)
})
